package com.microHR.hr.service.impl;

import com.microHR.hr.mapper.PositionMapper;
import com.microHR.hr.model.Position;
import com.microHR.hr.model.PositionExample;
import com.microHR.hr.service.PositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class PositionServiceImpl implements PositionService {
    @Autowired
    private PositionMapper positionMapper;

    @Override
    public List<Position> getAllPositions() {
        PositionExample example = new PositionExample();
        return positionMapper.selectByExample(example);
    }
}
